<?php 
	echo form_open('b_non_sy/save', array('id' => 'SaveBagiNonSy')); 
?>
<input type="hidden" name="id_a_non_sy" value="<?php echo $id_a_non_sy;?>">
<table class="table table-borderLuar table-hover table-condensed diklik">
<?php 
	if(count($list)>0){
		$i = 1; 
		foreach ($list as $row) {
?>
	<tr class="kursor">
		<td class="col-sm-1">
			<input type="checkbox" name="id_m_tholabah[]" value="<?php echo $row->id_m_tholabah; ?>"> <?php echo $row->id_m_tholabah; ?>
		</td>
		<td class="col-sm-5">
			<?php echo $row->nama_lengkap; ?>			
		</td>
		<td class="col-sm-6">
			<?php echo substr($row->alamat,0,35);?>...
			<span class="pull-right"><?php if($row->jk=='Laki-laki'){echo "L";}else{echo "P";}; ?></span>
		</td>
	</tr>
<?php
		}
	}else{
?>
<td>Tidak ada data tholabah</td>
<?php
	}
?>
</table>

<span id="loadingAdd" style="display:none;">Sedang memproses..</span>
<span id="errorAdd" style="display:none;color:red;">Ma'af, tholabah tidak dapat ditambahkan</span>

<span class="pull-right">
	<button type="submit" id="saveButton" class="btn btn-xs tmb-utama <?php if(count($list)<1){echo "sembunyi";}?>"> Simpan</button> 
	<button class="btn tmb-kedua close-reveal-modal close-modal"> Batal</button>
</span>


<?php
	echo form_close();
?>